import request from '../../utils/request'
/**
 * Author: Tzk
 * Name: 书籍列表接口
 * Date: 2024/6/17
 */

// 分页查看方法
export function searchBooks(data) {
    return request({
        url: '/book-biz-service/admin/v1/book/query-book-page',
        headers: {
            isToken: true,
            app_id:true,
            repeatSubmit: false
        },
        method: 'post',
        data: data
    })
}

// 图片上传方法
export function upImage(file) {
    return request({
        url: '/book-biz-service/admin/v1/book/upload-img',
        headers: {
            isToken: true,
            app_id:true,
            repeatSubmit: false
        },
        method: 'post',
        data: file
    })
}



// 修改方法
export function updateBooks(data) {
    return request({
        url: '/book-biz-service/admin/v1/book/update-book',
        headers: {
            isToken: true,
            app_id:true,
            repeatSubmit: false
        },
        method: 'post',
        data: data
    })
}
